package com.yuntu.micor.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuntu.micor.app.entity.XhVersion;
import com.yuntu.micor.app.mapper.VersionMapper;
import com.yuntu.micor.app.service.IVersionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class VersionServiceImpl extends ServiceImpl<VersionMapper, XhVersion> implements IVersionService {
    @Override
    public IPage<XhVersion> queryByPage( long current,long pageSize) {
        QueryWrapper<XhVersion> queryWrapper = new QueryWrapper<>();
        Page<XhVersion> page = new Page<>(current, pageSize);
        return this.page(page,queryWrapper);
    }
}
